//
// Created by ds on 24-7-1.
//

#ifndef RTIENTITY_H
#define RTIENTITY_H

enum RTIReturnCode {
    /**
     * RTI执行成功
     */
    RTI_SUCCESS = 0,

    /**
     * RTI错误
     */
    RTI_ERROR = 400,
    /**
     * 联邦执行已经存在
     */
    RTI_FEDERATION_EXECUTION_ALREADY_EXISTS = 0,

    /**
     * 联邦成员已经存在于该联邦执行中
     */
    RTI_FEDERATE_ALREADY_EXISTS = 402,

    /**
     * 要加入的联邦执行不存在
     */
    RTI_FEDERATION_EXECUTION_DOES_NOT_EXIST = 403,
};

/**
 * RTI联邦大使返回结构体
 */
struct RTIambassadorReturn {
    int code;
    std::string msg;
    RTI::RTI::RTIambassador rti;
};

/**
 * 联邦句柄返回结构体
 */
struct FederateHandleReturn {
    int code;
    std::string msg;
    RTI::FederateHandle federateHandle;
};

#endif //RTIENTITY_H
